package com.ruoyi.system.service.impl;

import java.util.List;
                                                        import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
    import com.ruoyi.system.mapper.SysMorePictureMapper;
import com.ruoyi.system.domain.SysMorePicture;
import com.ruoyi.system.service.ISysMorePictureService;
import com.ruoyi.common.core.text.Convert;

/**
 * 轮播图Service业务层处理
 *
 * @author ruoyi
 * @date 2020-08-13
 */
@Service
public class SysMorePictureServiceImpl implements ISysMorePictureService {
    @Autowired
    private SysMorePictureMapper sysMorePictureMapper;

    /**
     * 查询轮播图
     *
     * @param id 轮播图ID
     * @return 轮播图
     */
    @Override
    public SysMorePicture selectSysMorePictureById(Long id) {
        return sysMorePictureMapper.selectSysMorePictureById(id);
    }

    /**
     * 查询轮播图列表
     *
     * @param sysMorePicture 轮播图
     * @return 轮播图
     */
    @Override
    public List<SysMorePicture> selectSysMorePictureList(SysMorePicture sysMorePicture) {
        return sysMorePictureMapper.selectSysMorePictureList(sysMorePicture);
    }

    /**
     * 新增轮播图
     *
     * @param sysMorePicture 轮播图
     * @return 结果
     */
            @Override
    public int insertSysMorePicture(SysMorePicture sysMorePicture) {
                                                                                                            return sysMorePictureMapper.insertSysMorePicture(sysMorePicture);
            }

    /**
     * 修改轮播图
     *
     * @param sysMorePicture 轮播图
     * @return 结果
     */
            @Override
    public int updateSysMorePicture(SysMorePicture sysMorePicture) {
                                                                                                        return sysMorePictureMapper.updateSysMorePicture(sysMorePicture);
    }

    /**
     * 删除轮播图对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
            @Override
    public int deleteSysMorePictureByIds(String ids) {
                return sysMorePictureMapper.deleteSysMorePictureByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除轮播图信息
     *
     * @param id 轮播图ID
     * @return 结果
     */
    @Override
    public int deleteSysMorePictureById(Long id) {
                return sysMorePictureMapper.deleteSysMorePictureById(id);
    }
        }
